<?php
/**
 * Created by PhpStorm.
 * User: 63430
 * Date: 2018/10/18
 * Time: 9:06
 */
namespace app\common\validate;

use think\Validate;

class Admin extends Validate
{
    protected $rule = [
        'username|管理员账户' => 'require',
        'password|密码' => 'require'
    ];

    public function sceneLogin()
    {
        return $this->only(['username','password']);
    }
}